const express=require('express')

const router=express.Router()

//导入handler
const userHandler=require('../router_handler/user')
//导入数据验证中间件
// const expressJoi=require("@escook/express-joi")
// //导入需要的验证规则
// const {regSchema,logSchema} =require("../schema/user")
//注册
router.post('/register',userHandler.regUser)
//登录
router.post('/login',userHandler.logUser)


module.exports=router